<template>
  <div>
    <el-form label-position="right" label-width="100px">
      <h4>基础信息</h4>
      <el-form-item label="用户名">
        <el-input v-model="entity.loginName" disabled></el-input>
      </el-form-item>
      <h4>认证信息</h4>
      <el-form-item label="姓名">
        <el-input v-model="entity.nickName" disabled></el-input>
      </el-form-item>
      <el-form-item label="手机号">
        <el-input :value="encryptPhoneNumber(entity.phoneNumber)" disabled></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import utils from '../../../utils/index';
export default {
    data() {
        return {
            entity: {}
        };
    },
    computed: {
        userInfo() {
            return this.$store.state.user.info;
        }
    },
    mounted() {
        this.entity = Object.assign({}, this.userInfo);
    },
    methods: {
        ...utils
    }
};
</script>

<style scoped>

</style>
